package training.hari.oops.inheritance;

public class Parent {

	private String name = "Unknown";
	public  String parentName="NoParent";
	
	public Parent(){
		System.out.println("I am parent constructor with no arguments");
	}
	
	public Parent(String name){
		System.out.println("I am parent constructor with name argument");
		this.name=name;
		
	}
	
	public void sayHello(){
		
		System.out.println("Hello " + name);
	}
	
	public void sayGoodMorning(String name){
		System.out.println("Good morning, " + name);
		
	}
	
	protected void saySecret(){
		System.out.println("Hush... this is secret");
	}
	
}
